package com.example.movie_shop.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_movie
 */
@TableName(value ="t_movie")
public class Movie implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 电影名称
     */
    private String title;

    /**
     * 类型如古装动作等
     */
    private String genres;

    /**
     * 电影简介
     */
    private String msg;

    /**
     * 电影评分1-10之间的小数
     */
    private Double rate;

    /**
     * 电影图片
     */
    private String img;

    /**
     * 上映时间
     */
    private Date showTime;

    /**
     * 电影时长
     */
    private String times;

    /**
     * 访问链接
     */
    private String url;

    /**
     * 
     */
    private Double price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 电影名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 电影名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 类型如古装动作等
     */
    public String getGenres() {
        return genres;
    }

    /**
     * 类型如古装动作等
     */
    public void setGenres(String genres) {
        this.genres = genres;
    }

    /**
     * 电影简介
     */
    public String getMsg() {
        return msg;
    }

    /**
     * 电影简介
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 电影评分1-10之间的小数
     */
    public Double getRate() {
        return rate;
    }

    /**
     * 电影评分1-10之间的小数
     */
    public void setRate(Double rate) {
        this.rate = rate;
    }

    /**
     * 电影图片
     */
    public String getImg() {
        return img;
    }

    /**
     * 电影图片
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 上映时间
     */
    public Date getShowTime() {
        return showTime;
    }

    /**
     * 上映时间
     */
    public void setShowTime(Date showTime) {
        this.showTime = showTime;
    }

    /**
     * 电影时长
     */
    public String getTimes() {
        return times;
    }

    /**
     * 电影时长
     */
    public void setTimes(String times) {
        this.times = times;
    }

    /**
     * 访问链接
     */
    public String getUrl() {
        return url;
    }

    /**
     * 访问链接
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Movie other = (Movie) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getGenres() == null ? other.getGenres() == null : this.getGenres().equals(other.getGenres()))
            && (this.getMsg() == null ? other.getMsg() == null : this.getMsg().equals(other.getMsg()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
            && (this.getShowTime() == null ? other.getShowTime() == null : this.getShowTime().equals(other.getShowTime()))
            && (this.getTimes() == null ? other.getTimes() == null : this.getTimes().equals(other.getTimes()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getGenres() == null) ? 0 : getGenres().hashCode());
        result = prime * result + ((getMsg() == null) ? 0 : getMsg().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
        result = prime * result + ((getShowTime() == null) ? 0 : getShowTime().hashCode());
        result = prime * result + ((getTimes() == null) ? 0 : getTimes().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", genres=").append(genres);
        sb.append(", msg=").append(msg);
        sb.append(", rate=").append(rate);
        sb.append(", img=").append(img);
        sb.append(", showTime=").append(showTime);
        sb.append(", times=").append(times);
        sb.append(", url=").append(url);
        sb.append(", price=").append(price);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}